GET /api/admin/v1/fonts
List of fonts

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "fonts": [
    {
      "id": 17,
      "customer_name": "AGaramond Pro Bold",
      "system_name": "AGaramondPro-Bold",
      "link": "https://gipper-static-assets.s3.amazonaws.com/AGaramondPro-Bold.otf",
      "created_at": "2022-08-04T10:47:44.567Z"
    },
    ...
  ],
  "meta": {
    "total_count": 390
  }
}

Params

Param name Description
sort_to
optional

Validations:

  • Must be one of: asc, desc.

sort_by
optional

Validations:

  • Must be one of: id, customer_name, created_at.

page
optional

Validations:

  • Must be a Integer

query
optional

Validations:

  • Must be a String


GET /api/admin/v1/fonts/:id
Get font

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "id": 17,
  "customer_name": "AGaramond Pro Bold",
  "system_name": "AGaramondPro-Bold",
  "link": "https://gipper-static-assets.s3.amazonaws.com/AGaramondPro-Bold.otf",
  "created_at": "2022-08-04T10:47:44.567Z"
}

Params

Param name Description
id
required

Validations:

  • Must be a Integer


POST /api/admin/v1/fonts
Create font

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "id": 17,
  "customer_name": "AGaramond Pro Bold",
  "system_name": "AGaramondPro-Bold",
  "link": "https://gipper-static-assets.s3.amazonaws.com/AGaramondPro-Bold.otf",
  "created_at": "2022-08-04T10:47:44.567Z"
}

Params

Param name Description
customer_name
required

Validations:

  • Must be a String

system_name
required

Validations:

  • Must be a String

link
required

Validations:

  • Must be a String


PUT /api/admin/v1/fonts/:id
Update font

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "id": 17,
  "customer_name": "AGaramond Pro Bold",
  "system_name": "AGaramondPro-Bold",
  "link": "https://gipper-static-assets.s3.amazonaws.com/AGaramondPro-Bold.otf",
  "created_at": "2022-08-04T10:47:44.567Z"
}

Params

Param name Description
id
required

Validations:

  • Must be a Integer

customer_name
required

Validations:

  • Must be a String

system_name
required

Validations:

  • Must be a String

link
required

Validations:

  • Must be a String


DELETE /api/admin/v1/fonts/:id
Delete font

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "success": true
}

Params

Param name Description
id
required

Validations:

  • Must be a Integer